import axios from '../axios'
//新增员工
export const postAddUser=(data:any)=> {
    return axios.post('/admin/insert', data)
}
//员工列表
export const postUserList=(data:any)=> {
    return axios.post('/admin/page', data)
}
//编辑员工
export const postEditUserById=(data:any)=> {
    return axios.post(`/admin/updateById`, data)
}
//删除员工
export const delUserById=(id:any)=> {
    return axios.delete(`/admin/deleteById/${id}`)
}
//新增角色
export const postAddAuth=(data:any)=> {
    return axios.post('/role/insert', data)
}
//编辑角色
export const postEditRoleById=(data:any)=> {
    return axios.post('/role/updateById', data)
}
//删除角色
export const delRoleById=(id:any)=> {
    return axios.delete(`/role/deleteById/${id}`)
}
//角色列表 带分页
export const postRoleList=(data:any)=> {
    return axios.post('/role/page', data)
}
//角色列表 不带分页
export const getRoleList=(data:any)=> {
    return axios.get('/role/roleAll')
}
